package com.cn.jdia.dc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cn.jdia.dc.dao.DbbackupfileMapper;
import com.cn.jdia.dc.model.Dbbackupfile;
import com.cn.jdia.dc.service.IDbbackupfileService;

@Service("dbbackupfileService")
public class IDbbackupfileServiceImpl implements IDbbackupfileService{

	@Resource
	private DbbackupfileMapper mapper;
	
	@Override
	public List<Dbbackupfile> getBackupFileByProject(String project) {
		return this.mapper.selectByProject(project);
	}

	@Override
	public Dbbackupfile getDownloadFilePath(String project, String filename) {
		return this.mapper.selectFilepath(project, filename);
	}

	@Override
	public List<String> getBackupedProject() {
		return this.mapper.selectBackupedProject();
	}

}
